<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--sweetalert2-->
    <link href="../dist/sweetalert2.min.css" rel="stylesheet">
    <script src="../dist/sweetalert2.min.js" type="text/javascript"></script>
</head>
<body>


<!--const一般声明不变的常量-->

<script>
    let a=Swal.fire('第一个sweetalert2弹窗')

    // nn sweetalert2的顶级对象
    console.log(a)


    a.then(function (data){

        /*Object                              data是一个object对象  里面存了 弹窗执行的数据
                isConfirmed: true
                isDenied: false
                isDismissed: false
                value: true
            */

        console.log(data)
    })
</script>

</body>
</html>